<template>
  <div class="not-found">
    <h1>404</h1>
    <h2>页面不存在</h2>
    <el-button type="primary" @click="$router.push({ name: 'login' })">返回登录页面</el-button>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()
</script>

<style scoped>
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
}
/* 
  这是404页面的样式
  1.  display: flex; 使得flex item垂直居中
  2.  flex-direction: column; 使得flex item水平排列
  3.  align-items: center; 使得flex item水平居中
  4.  justify-content: center; 使得flex item垂直居中
  5.  height: 100vh; 使得页面高度为屏幕高度
*/



h1 {
  font-size: 72px;
  color: #409EFF;
  margin-bottom: 20px;
}

h2 {
  color: #606266;
  margin-bottom: 30px;
}
</style>